﻿using System;
using UnityEngine;

// Token: 0x020003D9 RID: 985
public static class AssetBundleLoader
{
	// Token: 0x060018A6 RID: 6310 RVA: 0x000A106C File Offset: 0x0009F26C
	public static T LoadAsset<T>(string directory, string assetBundleName, string assetName) where T : UnityEngine.Object
	{
		AssetBundleController assetBundleController = new AssetBundleController();
		assetBundleController.OpenFromFile(directory, assetBundleName);
		T result = assetBundleController.LoadAsset<T>(assetName);
		assetBundleController.Close(false);
		return result;
	}

	// Token: 0x060018A7 RID: 6311 RVA: 0x000A1098 File Offset: 0x0009F298
	public static T LoadAndInstantiate<T>(string directory, string assetBundleName, string assetName) where T : UnityEngine.Object
	{
		AssetBundleController assetBundleController = new AssetBundleController();
		assetBundleController.OpenFromFile(directory, assetBundleName);
		T result = assetBundleController.LoadAndInstantiate<T>(assetName);
		assetBundleController.Close(false);
		return result;
	}
}
